/*
 * Copyright (c) 2006, 2021, webrx.cn All rights reserved.
 *
 */
package cn.webrx.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Options;

import java.util.List;
import java.util.Map;

/**
 * <p>Project: mybatis2021 - StudentMapper
 * <p>Powered by webrx On 2021-10-23 17:43:12
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public interface StudentMapper {
    public List<String> tbs();

    public int add(Map<String, Object> map);

    @Insert("insert into book values (null, #{name}, #{price}, #{author})")
    @Options(useGeneratedKeys = true, keyColumn = "id", keyProperty = "id")
    public int save(Map<String, Object> map);
}
